<?php
declare(strict_types=1);

use Phinx\Migration\AbstractMigration;

final class AddColumnNotifyTypeInMessageTable extends AbstractMigration
{
    public function up()
    {
        $this->table('message')->addColumn('notify_type', 'enum', [
            'values' => 'default,task_remind,approval,examine,todo',
            'default' => 'default',
            'null' => false,
            'comment' => '通知类型'
        ])->save();
    }

    public function down()
    {
        $this->table('message')->removeColumn('notify_type')->save();

    }
}
